<%
if current_player.player_character
	@name = current_player.player_character.name_and_title
else
	@name = current_player.login
end
%>
<h1><%= title "Welcome #{@name}" %></h1>

<ul>
	<% if current_player.player_character.nil? %>
	<li><%=link_to "Select Character", {:action => "select_character"}%></li>
	<% else %>
	<li><%=link_to_character_sheet %></li>
	<li><%=link_to_court %></li>
	<li><%=link_to "Marriage Proposals", {:controller => "marriages", :action => "index"}%></li>
	<li><%=link_to "Betrothal Proposals", {:controller => "betrothals", :action => "index"}%></li>
	<li><%=link_to "Church", {:action => "church"}%></li>
	<li><%=link_to "Diplomacy", {:action => "diplomacy"}%></li>
	<li><%=link_to "Household", {:action => "household"}%></li>
	<li><%=link_to "Armies", {:action => "armies"}%></li>
	<li><%=link_to "Budget", {:action => "budget"}%></li>
	<li><%=link_to "Family Tree", {:action => "family_tree"}%></li>
	<li><%=link_to "Journal", {:action => "journal"}%></li>
	<li><%=link_to "Messages", {:action => "messages"}%></li>
	<li><%=link_to "Change Character", {:action => "select_character"}%></li>
	<% end %>
	<li><%=link_to "Logout", {:action => "logout"}%></li>
</ul>